]> dgit.raspbian.org Git - nodejs.git/commit
http: fix response queue poisoning in http.Agent
authorMatteo Collina <hello@matteocollina.com>
Sun, 29 Mar 2026 15:42:54 +0000 (17:42 +0200)
committerBastien Roucariès <rouca@debian.org>
Sun, 16 Aug 2026 17:34:06 +0000 (19:34 +0200)
commit115b684bee3a04ede974edf4d0c078c0009a24e0
tree34fd1c816012f317f9aeef7562abcef02d1ac9f9
parentbd3366ed1f35f844060a4af148a56c63cec9d587
http: fix response queue poisoning in http.Agent

Attach a data guard listener on idle keepAlive sockets in the
freeSockets pool. If unsolicited data arrives while the socket
is idle, destroy it immediately to prevent response queue poisoning.

Refs: https://hackerone.com/reports/3582376
PR-URL: https://github.com/nodejs-private/node-private/pull/846
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
CVE-ID: CVE-2026-48931
origin: https://github.com/nodejs/node/commit/0a22d40180cb796e0d68e94c1a7a8a05a8f47c10
bug: https://nodejs.org/en/blog/vulnerability/june-2026-security-releases#http-response-queue-poisoning-via-toctou-race-condition-in-httpagent-cve-2026-48931---low

Gbp-Pq: Topic sec
Gbp-Pq: Name CVE-2026-48931.patch
lib/_http_agent.js
test/parallel/test-http-agent-free-socket-data-guard.js [new file with mode: 0644]
test/parallel/test-http-agent-keepalive.js